﻿using System;
using Zeus.Thunder.Core;

namespace SharpTrainer.Delegates
{
    class TestDelegateSort : ITestCase
    {
        public void Run()
        {
            int i;
            int[] items = new int[5];

            for (i=0; i<items.Length; i++)
            {
                Console.Write("Enter an integer: ");
                items[i] = int.Parse(Console.ReadLine());
            }

            Utility.BubbleSort(items, Utility.LessThan);

            for (i = 0; i < items.Length; i++)
            {
                Console.WriteLine(items[i]);
            }

            Console.ReadLine();
        }
    }
}
